package com.sm.entity;

public class Wages extends BaseEntity {
    private Integer wid;
    private UserInfo userInfo;
    private Double baseSalary;
    private Double jobSalary;
    private Double welfare;
    private Double wagePayable;
    private Double wageReal;
    private Integer month;

    public Wages(){}

    public Wages(Integer uid,Double baseSalary,Double jobSalary,Double wagePayable,Double wageReal,Integer month){
        this.userInfo = new UserInfo();
        this.userInfo.setUid(uid);
        this.baseSalary = baseSalary;
        this.jobSalary = jobSalary;
        this.month = month;
        this.wagePayable = wagePayable;
        this.wageReal = wageReal;
    }

    public Integer getWid() {
        return wid;
    }

    public void setWid(Integer wid) {
        this.wid = wid;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public Double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(Double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public Double getJobSalary() {
        return jobSalary;
    }

    public void setJobSalary(Double jobSalary) {
        this.jobSalary = jobSalary;
    }

    public Double getWelfare() {
        return welfare;
    }

    public void setWelfare(Double welfare) {
        this.welfare = welfare;
    }

    public Double getWagePayable() {
        return wagePayable;
    }

    public void setWagePayable(Double wagePayable) {
        this.wagePayable = wagePayable;
    }

    public Double getWageReal() {
        return wageReal;
    }

    public void setWageReal(Double wageReal) {
        this.wageReal = wageReal;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    @Override
    public String toString() {
        return "Wages{" +
                "wid=" + wid +
                ", userInfo=" + userInfo +
                ", baseSalary=" + baseSalary +
                ", JobSalary=" + jobSalary +
                ", welfare=" + welfare +
                ", wagePayable=" + wagePayable +
                ", wageReal=" + wageReal +
                ", month=" + month +
                '}';
    }
}
